package com.okaixz.client.service;

import com.okaixz.client.model.domain.TaskInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.okaixz.client.model.vo.QianDaoInfoVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cdz
 * @since 2025-06-11
 */
public interface ITaskInfoService extends IService<TaskInfo> {

    //根据taskId和clientName获取可用的taskInfo
    TaskInfo getEnableTaskInfoByIdAndClientName(Integer taskId, String clientName);
    //根据clientName获取可用的taskInfo列表
    List<TaskInfo> getListByClientName(String clientName);

    List<TaskInfo> getKbTaskInfo(String clientName, String userId);

    QianDaoInfoVo qianDaoTask(String clientName, String userId);

    QianDaoInfoVo qianDao(String clientName, String userId);

    QianDaoInfoVo finishTask(String clientName, String userId, Integer taskId);

    //根据taskId和clientName获取可用的taskInfo
    TaskInfo getEnableTaskInfoByClientNameAndType(Integer type, String clientName);
}
